The message doesn't exist
function CheckAllowEditMessage($MessageUserID, $MessagePostTime) { global $idUser, $UserAccess; if($UserAccess & ACCESS_WEBMASTER) { return(0); // Yes, allow edit because it's the webmaster } if($idUser != $MessageUserID) { return(1); // Can't edit because it's not the owner } if($MessagePostTime < time() - MAX_MESSAGE_EDIT_TIME) { return(2); // Can't edit because the message is too old } return(0); // Yes, belongs to the user and not too old } ?>
The message doesn't exist